﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="WUCArtImages.ascx.cs" Inherits="WebAppArtreve.views.shared.components.arts.WUCArtImages" %>
<style type="text/css">
    .style1
    {
        width: 400px;
        height: 300px;
    }
</style>
<asp:ListView ID="ListViewArt" runat="server" 
    DataSourceID="ODSArtImagesALL">
    <LayoutTemplate>
        <asp:Image id="itemPlaceholder"  runat="server" ImageUrl="~/content/art/noimage.jpg" />        
    </LayoutTemplate>
    <ItemTemplate>
        <asp:Image ID="imgArt" CssClass="imgArtView" runat="server" ImageUrl='<%# GetRealImageURL((String)DataBinder.Eval(Container.DataItem, "Image")) %>' />                                      
    </ItemTemplate>
</asp:ListView>
<asp:ObjectDataSource ID="ODSArtImagesALL" 
    runat="server" 
    TypeName="CLibArtreve.bll.ArtPictureBLL"  
    SelectMethod="GetArtPicturesByArtId" 
    DataObjectTypeName="CLibArtreve.models.ArtPicture"
    OnObjectCreating="ODSArtImagesALL_OnObjectCreating">
    <SelectParameters>
        <asp:QueryStringParameter Name="id" QueryStringField="id" Type="Int64" DefaultValue="-1" />
    </SelectParameters>
</asp:ObjectDataSource>
<p>